package com.onlineclass.onlineclassmanagement.controller;

import com.onlineclass.beas.ResultObject;
import com.onlineclass.onlineclassmanagement.feign.GetSchoolFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Famousteachercolumn")
@Slf4j
public class TeacherContriller {

    @Autowired
    GetSchoolFeign getSchoolFeign;

    @RequestMapping("/getTeacher")
    public ResultObject getTeacher(){

        ResultObject object = getSchoolFeign.getTeacher();
        return object;
    }


}
